<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.net.InetAddress" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
 String url =  InetAddress.getLocalHost().getHostAddress().equals("172.31.95.225")?"http://test.manager.taomeimei.net/finance/hosFinance?hospital_id=":"http://manager.taomeimei.net/finance/hosFinance?hospital_id=";
%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>后台管理模板系统</title>
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta
          name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
  />
  <link rel="icon" href="../static/logo/logo.png">
  <link rel="stylesheet" href="../static/lib/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="../static/css/admin.css" media="all" />
</head>
<body class="layui-layout-body">
<div id="TMM_app">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <!-- 头部区域 -->
      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item tmm-admin-flexible" lay-unselect>
          <a
                  href="javascript:;"
                  tmm-admin-event="flexible"
                  title="侧边伸缩"
          >
            <i
                    class="layui-icon layui-icon-shrink-right"
                    id="TMM_app_flexible"
            ></i>
          </a>
        </li>
        <span
                class="layui-nav-bar"
                style="top: 229.944px; height: 0px; opacity: 0;"
        ></span>
      </ul>
      <ul
              class="layui-nav layui-layout-right"
              lay-filter="tmm-admin-layout-right"
      >
        <li class="layui-nav-item" lay-unselect>
          <a
                  lay-href="app/message/index.html"
                  tmm-admin-event="message"
                  lay-text="消息中心"
          >
            <i class="layui-icon layui-icon-notice"></i>

            <!-- 如果有新消息，则显示小圆点 -->
            <span class="layui-badge-dot"></span>
          </a>
        </li>
        <li class="layui-nav-item tmm-admin-user" lay-unselect>
          <a href="javascript:;">
            <cite>${user.name}</cite>
          </a>
          <dl class="layui-nav-child">
            <%--<dd><a lay-href="set/user/info.html">基本资料</a></dd>--%>
            <%--<dd><a lay-href="set/user/password.html">修改密码</a></dd>--%>
            <%--<hr />--%>
            <dd tmm-admin-event="detail" style="text-align: center;">
              <a href="javascript:void(0)" onclick="detail()">基本资料</a>
            </dd>
            <dd tmm-admin-event="logout" style="text-align: center;">
              <a href="${path}/logout">退出</a>
            </dd>
          </dl>
        </li>
        <%--<span--%>
                <%--class="layui-nav-bar"--%>
                <%--style="top: 229.944px; height: 0px; opacity: 0;"--%>
        <%--></span>--%>
      </ul>
    </div>

    <!-- 侧边菜单 -->
    <div class="layui-side layui-side-menu">
      <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="dashboard.html">
          <img src="../static/logo/logo.png" style="width: 80px;height: 80px;">
        </div>

        <ul
                class="layui-nav layui-nav-tree"
                lay-shrink="all"
                id="LAY-system-side-menu"
                lay-filter="tmm-admin-system-side-menu"
        >
          <%--<li data-name="" data-jump="" class="layui-nav-item">--%>
            <%--<a href="javascript:;" lay-tips="系统首页" lay-direction="2">--%>
              <%--<i class="layui-icon layui-icon-home"></i>--%>
              <%--<cite>系统首页</cite> <span class="layui-nav-more"></span--%>
            <%--></a>--%>
            <%--<dl class="layui-nav-child">--%>
              <%--<dd data-name="" data-jump="/">--%>
                <%--<a href="javascript:;" lay-href="/">系统首页</a>--%>
              <%--</dd>--%>
              <%--<dd data-name="account" data-jump="account">--%>
                <%--<a href="javascript:;" lay-href="account">账户设置</a>--%>
              <%--</dd>--%>
            <%--</dl>--%>
          <%--</li>--%>
            <c:forEach items="${user.userMenuList}" var="item">
            <li
                    data-name="${item.permission}"
                    data-jump=""
                    class="layui-nav-item"
                    style=""
            >
              <a href="javascript:;" lay-tips="${item.name}" lay-direction="2">
                <i class="layui-icon layui-icon-component"></i>
                <cite>${item.name}</cite> <span class="layui-nav-more"></span
              ></a>
                <dl class="layui-nav-child">
                  <c:forEach items="${item.children}" var="item2">
                  <dd data-name="${item2.permission}" data-jump="">
                    <a href="javascript:;" lay-href="${path}${item2.url}">${item2.name}</a>
                  </dd>
                  </c:forEach>
                </dl>
              </li>
            </c:forEach>
          <span
                  class="layui-nav-bar"
                  style="top: 229.944px; height: 0px; opacity: 0;"
          ></span>
        </ul>
      </div>
    </div>

    <!-- 页面标签 -->
    <div class="tmm-admin-pagetabs" id="TMM_app_tabs">
      <div
              class="layui-icon tmm-admin-tabs-control layui-icon-prev"
              tmm-admin-event="leftPage"
      ></div>
      <div
              class="layui-icon tmm-admin-tabs-control layui-icon-next"
              tmm-admin-event="rightPage"
      ></div>
      <div class="layui-icon tmm-admin-tabs-control layui-icon-down">
        <ul
                class="layui-nav tmm-admin-tabs-select"
                lay-filter="tmm-admin-pagetabs-nav"
        >
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;"></a>
            <dl class="layui-nav-child layui-anim-fadein">
              <dd tmm-admin-event="closeThisTabs">
                <a href="javascript:;">关闭当前标签页</a>
              </dd>
              <dd tmm-admin-event="closeOtherTabs">
                <a href="javascript:;">关闭其它标签页</a>
              </dd>
              <dd tmm-admin-event="closeAllTabs">
                <a href="javascript:;">关闭全部标签页</a>
              </dd>
            </dl>
          </li>
        </ul>
      </div>
      <div
              class="layui-tab"
              lay-unauto
              lay-allowClose="true"
              lay-filter="tmm-admin-layout-tabs"
      >
        <ul class="layui-tab-title" id="TMM_app_tabsheader">
          <li
                  lay-id="dashboard.html"
                  lay-attr="dashboard.html"
                  class="layui-this"
          >
            <i class="layui-icon layui-icon-home"></i>
          </li>
        </ul>
      </div>
    </div>

    <!-- 主体内容 -->
    <div class="layui-body" id="TMM_app_body">
      <div class="tmm-admin-tabsbody-item layui-show">
        <iframe
                src="dashboard.html"
                frameborder="0"
                class="tmm-admin-iframe"
        ></iframe>
      </div>
    </div>
    <div class="tmm-admin-body-shade" tmm-admin-event="shade"></div>
  </div>
</div>

<script src="../static/lib/layui/layui.js"></script>
<script>
    layui
        .config({
            base: "../static/js/"
        })
        .extend({
            index: "index"
        })
        .use("index");

    function detail() {
      layer.open({
        type: 2,
        area: ['60%', '90%'],
        fixed: false, //不固定
        maxmin: true,
        content: '${path}/merchant/detail'
      });
    }
</script>
</body>
</html>
